﻿using System;

namespace Triad.Controls
{
    using System.ComponentModel;
    public partial class tfTalk
    {
        //public delegate void CallServerHandler(object sender, tCallServerEventArgs e);
        [PropertyTab("tfControlsTab"),
         Category("Action"),
         DefaultValue(""),
         Description("The event to call upon ServerCall.")
        ]
        public event EventHandler<tCallServerEventArgs> CallServer;
        protected virtual void OnCallServer(tCallServerEventArgs e)
        {
            if (CallServer != null)
            {
                CallServer(this, e);
            }
        }
    }
}
